import request from '@/utils/request'

//头表工单数据
export function listStartOrder(query) {
  return request({
    url: '/production/startMoe/get',
    method: 'get',
    params: query
  })
}

//子表明细数据
export function listMx(moeJtbh) {
  return request({
    url: '/production/startMoe/getDetails/' + moeJtbh,
    method: 'get'
  })
}


//汇总数据
export function listTotal() {
  return request({
    url: '/production/startMoe/getTotal',
    method: 'get'
  })
}
// /hd-api/production/startMoe/getTotal
//子表明细数据
export function listGdgs() {
  return request({
    url: '/production/startMoe/getTotal',
    method: 'get'
  })
}
// /hd-api/production/startMoe/startOrStopOrder/{moeId}/{moeJtbh}
export function moeMstrCheck(moeId,moeJtbh) {
  return request({
    url: '/production/startMoe/startOrStopOrder/' + moeId + '/' + moeJtbh,
    method: 'put',
  })
}
